package com.int_tech.facility.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

;

/**
 * Created by Administrator on 2017/9/25.
 * 设备信息
 */
@Entity
@Table(name = "c_facility")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Facility {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(length = 8)
    private Integer id;

    //设备序列号
    @Column(length = 64)
    private String facilityNumber;

    //硬件版本
    @Column(length = 64)
    private String hedition;

    //软件版本
    @Column(length = 64)
    private String sedition;

    //SIM卡平品牌
    @Column(length = 64)
    private String simBrand;

    //SIM卡号
    @Column(length =64)
    private String simNumber;


    //关联车牌号
    @Column(length =64)
    private String carNumber;

    //RFID卡号
    @Column(length =64)
    private String rfidNumber;

    //车辆行驶本照片
    @Column(length = 512)
    private String cardUrl;

    //备注
    @Column(length = 1024)
    private String remake;

    //创建时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createdTime;

    //更新时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedTime;

    //是否删除(0表示未删除，1表示已删除)
    @Column(length = 8)
    private int isDel;
}
